package com.aca.market.service;

import com.aca.market.entity.Cart;
import com.aca.market.entity.Item;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;
import java.util.concurrent.Future;

/**
 * <p>
 * 购物车表 服务类
 * </p>
 *
 * @author aca
 * @since 2020-11-16
 */
public interface ICartService extends IService<Cart> {

    Integer checkCartAmount();

    Map<Item,Integer> getUserCart();

    String addToCart(Item item);

    Future<Boolean> cutItemQty(Item item);

    Future<Boolean> addItemQty(Item item);

    Future<Boolean> delItem(Item item);
}
